﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AutoResumeSend.Entity
{
    public  class WebSiteInfo
    {

        /// <summary>
        /// 域名
        /// </summary>
        public string Host { get; set; }

        /// <summary>
        /// 站点id
        /// </summary>
        public int WebId { get; set; }

        /// <summary>
        /// 站点链接
        /// </summary>
        public string WebLink { get; set; }

        /// <summary>
        /// 站点名称
        /// </summary>
        public string WebName { get; set; }

        /// <summary>
        /// 职位标题
        /// </summary>
        public string OccurTitle { get; set; }

        /// <summary>
        /// 职位描述
        /// </summary>
        public string OccurContent { get; set; }

        /// <summary>
        /// 职位链接地址
        /// </summary>
        public string OccurUrl { get; set; }

        /// <summary>
        /// 职位发布时间
        /// </summary>
        public DateTime PublishTime { get; set; }

        /// <summary>
        /// 发布职位的公司名称
        /// </summary>
        public string CompanyName { get; set; }

        /// <summary>
        /// 发布职位的公司描述
        /// </summary>
        public string CompanyContent { get; set; }

        /// <summary>
        /// 发布职位的公司地址
        /// </summary>
        public string CompanyAddress { get; set; }

        /// <summary>
        /// 发布职位的公司邮箱
        /// </summary>
        public string CompanyEmail { get; set; }

        /// <summary>
        /// 职位地区
        /// </summary>
        public string JobArea { get; set; }

        /// <summary>
        /// 要求工作年限
        /// </summary>
        public int  JobYear { get; set; }


        #region 抓取匹配相关

        private System.Text.Encoding _encoding = System.Text.Encoding.Default;
        /// <summary>
        /// 网站编码
        /// </summary>
        public System.Text.Encoding Encoding
        {
            get { return _encoding; }
            set { _encoding = value; }
        }

        /// <summary>
        /// 匹配职位目录了的正则表达式
        /// </summary>
        public string RegMenuString { get; set; }

        /// <summary>
        /// 职位链接在匹配职位目录正则表达式中的索引
        /// </summary>
        public int RegOccurUrlIndex { get; set; }

        /// <summary>
        /// 职位省份在目录正则表达式中的索引
        /// </summary>
        public int RegJobProvinceIndex { get; set; }

        /// <summary>
        /// 职位区域在匹配职位目录正则表达式中的索引
        /// </summary>
        public int RegJobAreaIndex { get; set; }

        /// <summary>
        /// 职位要求工作年限在目录正则表达式中的索引
        /// </summary>
        public int RegJobYearIndex { get; set; }

        /// <summary>
        /// 职位详情中的职位标题的索引
        /// </summary>
        public int RegOccurTitleIndex { get; set; }


        /// <summary>
        /// 职位链接在匹配职位目录正则表达式中的最大数
        /// </summary>
        public int RegOccurMenuGroupMax { get; set; }


        /// <summary>
        /// 匹配职位目录的下一页的正则表达式
        /// </summary>
        public string RegNextPageString { get; set; }

        /// <summary>
        /// 匹配下一页的链接的索引
        /// </summary>
        public int RegNextPageUrlIndex { get; set; }


        /// <summary>
        /// 匹配下一页链接的最大数
        /// </summary>
        public int RegNextPageUrlMax { get; set; }

        /// <summary>
        /// 匹配职位详细信息的正则表达式
        /// </summary>
        public string RegOccurString { get; set; }

        /// <summary>
        /// 匹配职位详细信息的正则表达式的最大数
        /// </summary>
        public int RegOccurGroupMax { get; set; }

       

        /// <summary>
        /// 职位详情中职位描述的索引
        /// </summary>
        public int RegOccurContentIndex { get; set; }

        /// <summary>
        /// 职位详情中公司名称索引
        /// </summary>
        public int RegCompanyNameIndex { get; set; }

        /// <summary>
        /// 职位详情中公司简介的索引
        /// </summary>
        public int RegCompanyContentIndex { get; set; }

        /// <summary>
        /// 职位详情中公司邮箱的索引
        /// </summary>
        public int RegCompanyEmailIndex { get; set; }

        /// <summary>
        /// 职位详情中公司地址的索引
        /// </summary>
        public int RegCompanyAddressIndex { get; set; }

        /// <summary>
        /// 职位详情中发布时间的索引
        /// </summary>
        public int RegPublishTimeIndex { get; set; }

        
        #endregion
    }
}
